package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.domain.Dish;
import com.itheima.domain.DishDTO;

import java.util.List;

/**
* @Author yangshuai
* @Desc:菜品详情-service层接口
* @Date 2022-6-6 15:46:02
* @Version 1.0
**/
public interface DishService {

   public Page<Dish> page(Integer page, Integer pageSize, String name);

    int save(DishDTO dish);

    DishDTO findById(Long id);

    int update(DishDTO dish);

    void updateStatusByIds(Integer status, Long[] ids);

    int deleteByIds(Long[] ids);

    List<Dish> findDishListByCategoryId(Long categoryId, String name);
}
